clear random_plot_indices

num_of_traj=length(Traj4);
traj_indices=1:num_of_traj;

l=cellfun(@length,Traj4);

traj_indices_toPlot=traj_indices(l>75);

number_of_plots=1000;

random_plot_indices=randi(num_of_traj,[number_of_plots,1]);


% figure
% hold on
% for i=1:number_of_plots
%     [frames,vals]=GetObjectProperties(ScoredObjects4,Traj4{random_plot_indices(i)});
%      plot(frames,vals);
% 
% 
% end
% xlabel('Time (Hrs)');

figure
hold on
for i=1:length(traj_indices_toPlot)
    [frames,vals]=GetObjectProperties(ScoredObjects4,Traj4{traj_indices_toPlot(i)});
     plot(frames,vals);


end
xlabel('Time (Hrs)');